import request from "@/util/request";

// 健康记录
// 获取标签列表
export const getLabel = (code) => request({
  url: '/qichong-record/api/animal/tag/list',
  params: {
    code
  }
})
// 获取标签详情
export const getLabelDetail = (id) => request({
  url: '/qichong-record/api/animal/tag/detail',
  params: {
    id
  }
})

// 创建提醒
export const addEstablish = (EstablishQuery) => request({
  url: '/qichong-record/api/animal/reminder/submit',
  method: 'post',
  data: EstablishQuery
})
// 获取提醒
export const getEstablish = (getEstablishQuery) => request({
  url: '/qichong-record/api/animal/reminder/page',
  params: getEstablishQuery
})
// 删除提醒
export const deleteEstablish = (ids) => request({
  url: '/qichong-record/api/animal/reminder/remove',
  method: 'post',
  params: {
    ids
  }
})

// 健康记录提交
export const addrecordDetail = (type) => request({
  url: '/qichong-record/api/animal/health/submit',
  method: 'post',
  data: type
})

// 获取健康记录
export const gethealthPage = (type) => request({
  url: '/qichong-record/api/animal/health/page',
  params: type
})

// 健康记录删除
export const removehealthPage = (ids) => request({
  url: '/qichong-record/api/animal/health/remove',
  method: 'post',
  params: {
    ids
  }
})
